<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title th:text="#{system.name}">index</title>
    <link th:href="@{/webjars/bootstrap/5.2.3/css/bootstrap.css}"
          href="../static/bootstrap-5.3.0/css/bootstrap.css" rel="stylesheet"/>

    <script th:src="@{/webjars/jquery/3.6.4/jquery.min.js}" src="../static/jquery/3.6.4/jquery.min.js"></script>
</head>
<body>

<div class="container text-center">
    <div class="row">
        <div class="col"></div>
        <div class="col ">

            <h1>SpringBoot 文件上传测试</h1>
            <form method="POST" enctype="multipart/form-data"
                  action="/file/upload">
                <p>
                    <input type="file" name="file">
                </p>
                <button type="submit">上传</button>
                <p th:text="${message}"></p>
            </form>

        </div>
        <div class="col"></div>
    </div>
</div>

</body>

</html>